<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>중앙 쇼핑몰</title>
<script type="text/javascript" src="js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/jquery.iframe-auto-height.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#btnJoin").click(function() {
			$("#main").attr("src", "member/joinform.htm");
			$("#main").iframeAutoHeight({debug: true});
		});
	});
</script>
<style type="text/css">
a {
	text-decoration: none
}

IMG {
	border: none;
}

.myClass {
	border: 2px solid seagreen
}

iframe {
	border: 0
}
</style>
</head>
<body>
	<center>
		<a href="#" onclick="window.document.location.reload()"><img src="images/main.JPG" width="1000" height="150"></a>
		<table width="1000" border="0" cellspacing="1" cellpadding="5" style="table-layout: fixed">
			<tr bgcolor="#004554">
				<td width="180"><font color="#FFFFFF">Shopping Category</font></td>
				<td><a href="#" onclick="divTab('div12')"><font color="#FFFFFF">장바구니</font></a></td>
				<td><a href="#"><font color="#FFFFFF">주문조회</font></a></td>
				<td><a href="#"><font color="#FFFFFF">마이페이지</font></a></td>
				<td><a href=""><font color="#FFFFFF">고객센터</font></a></td>
			</tr>
			<tr>
				<td align="center" valign="top">
					<div align="right">
						<c:choose>
							<c:when test="${id==null}">
								<form name="frm" action="member/login.htm" method="post">
									아 이 디 <input type="text" name="mem_id" style="width: 100px;"><br> 비밀번호 <input type="password" name="mem_pwd" style="width: 100px;"><br>
									<br> <input type="submit" value="로그인"> <input type="button" value="회원가입" id="btnJoin">
								</form>
							</c:when>
							<c:when test="${id=='admin'}">
								<form name="frm" action="member/logout.htm" method="post">
									관리자 : ${id}<br> <br> <input type="submit" value="로그아웃"><br>
									<hr>
									<a href="#" onclick="divTab('div6')">회원 정보 수정</a><br> <a href="#" onclick="divTab('div7')">회원 탈퇴</a>
									<hr>
									<a href="#" onclick="divTab('div12')">상품등록</a>
								</form>
							</c:when>
							<c:otherwise>
								<form name="frm" action="member/logout.htm" method="post">
									${id}님! 어서 오세요!<br> <br> <input type="submit" value="로그아웃"><br>
									<hr>
									<a href="#" onclick="divTab('div6')">회원 정보 수정</a><br> <a href="#" onclick="divTab('div7')">회원 탈퇴</a>
								</form>
							</c:otherwise>
						</c:choose>
					</div>
					<hr> <a href="#" onclick="divTab('div8')"><img src="images/outer.gif"></a><br> <br> <a href="#" onclick="divTab('div9')"><img
						src="images/shirths.gif"></a><br> <br> <a href="#" onclick="divTab('div10')"><img src="images/tee.gif"></a><br> <br> <a href="#"
					onclick="divTab('div11')"><img src="images/bottom.gif"></a><br> <br> <br>
					<hr> <br> <b>고객센터 0000-0000</b><br> <br>
					<hr> <br> <u><b>이용안내</b></u><br> <br>
					<div align="left">
						<font size="2">평일: 09시 - 18시<br> <br>주말|공휴일: 휴무
						</font>
					</div> <br>
					<hr>
				</td>
				<td align="center" colspan="4" rowspan="2" valign="top"><iframe id="main" width="100%"></iframe> <!-- 		<div id="div1" style="display:block;"><img src="images/mainPage.JPG" width="100%" height="100%"></div> -->
					<!-- 		<div id="div2" style="display:none;"><img src="images/company.jpg"></div> --> <!-- 		<div id="div3" style="display:none;"><img src="images/private.JPG"></div> -->
					<!-- 		<div id="div4" style="display:none;"><iframe src="agreement.htm" width="100%" height="500"></iframe></div> --> <%-- 		<div id="div5" style="display:none;"><jsp:include page="/member/joinform.htm" flush="false" /></div> --%>
					<%-- 		<div id="div6" style="display:none;"><jsp:include page="/member/updateform.htm" flush="false" /></div> --%> <%-- 		<div id="div7" style="display:none;"><jsp:include page="/member/deleteform.htm" flush="false" /></div> --%>
					<!-- 		<div id="div8" style="display:none;"><iframe src="shop/list.htm?category=outer" width="100%" height="800" frameborder="no"></iframe></div> --> <!-- 		<div id="div9" style="display:none;"><iframe src="shop/list.htm?category=shirt" width="100%" height="800" frameborder="no"></iframe></div> -->
					<!-- 		<div id="div10" style="display:none;"><iframe src="shop/list.htm?category=tee" width="100%" height="800" frameborder="no"></iframe></div> --> <!-- 		<div id="div11" style="display:none;"><iframe src="shop/list.htm?category=bottom" width="100%" height="800" frameborder="no"></iframe></div> -->
					<!-- 		<div id="div11" style="display:none;"><iframe src="shop/cart.htm" width="100%" height="800" frameborder="no"></iframe></div> --> <!-- 		<div id="div12" style="display:none;"><iframe src="admin/writeform.htm" width="100%" height="800" frameborder="no"></iframe></div> --></td>
			</tr>
			<tr>
				<td height="100"></td>
			</tr>
		</table>
		<hr width="1000" noshade>
		<div style="width: 650px; height: 20px; background-color: #D8D8D8;">
			<a href="#" onclick="divTab('div2');">회사소개</a> | <a href="#" onclick="divTab('div3')">개인정보취급방침</a> | <a href="#" onclick="divTab('div4')">이용약관</a> | <a href="#"
				onclick="window.open('mailForm.htm','광고및제휴','fullscreen=no,menubar=no,status=no,toolbar=no,titlebar=no,location=no,scrollbars=yes,width=520,height=550')">광고&제휴문의</a>
			| <a href="customerCenter.jsp">고객센터</a>
		</div>
		<font size="2">
			<hr width="1000" noshade> 상호명 : 중앙 쇼핑몰 대표 : 홍길동 주소:서울특별시 강남구 역삼동 고객센터:0000-0000 팩스:02-0000-0000 E-mail:<a href="mailto:ChoonAng@mail.com">ChoonAng@mail.com</a><br>
			사업자등록번호 : 000-00-00000 통신판매업신고번호 : 중앙 제0000-0000호<br> <font color="gray" size="1.5">중앙 쇼핑몰은 관세법 등 관련규정을 준수하고, 불법물을 취급하지 아니하며, 정품만을 취급합니다.<br> 또한 분할발송에
				의한 가격허위신고(15만원 이하로 임의조정)등 구매자의 불법사항 요청에는 일체 협조하지 않습니다.<br></font> COPYRIGHT(C) ChoongAng. ALL RIGHT RESERVED
		</font>
	</center>
</body>
</html>
